package com.anycl.design.behavioral.nullobject;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class Main {

    public static void main(String[] args) {
        AbstractObject Java = ObjectFactory.creator("Java");
        log.info(Java.getName());
        AbstractObject MySQL = ObjectFactory.creator("MySQL");
        log.info(MySQL.getName());
        AbstractObject nullObject = ObjectFactory.creator("");
        log.info(nullObject.getName());
    }
}
